/*
 * CSVFilter.java
 */

package org.owasp.scrubbr.db.report;

import java.io.File;
import javax.swing.filechooser.FileFilter;

public class CSVFilter extends FileFilter {
    
    /** Creates a new instance of CSVFilter */
    public CSVFilter() {
    }

    public boolean accept(File file) {
            if ( file.getName().endsWith(".csv") ) {
            return true;
        }
        return false;
    }

    public String getDescription() {
        return "Comma-separated format";
    }
    
}
